package com.anti.modular.bus.basicinformation.param;

import com.anti.commom.pojo.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;

/**
* 基础资料参数类
 *
 * @author anti
 * @date 2021-04-07 19:24:48
*/
@Data
public class BasicInformationParam extends BaseParam {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Long id;

    /**
     * 户型
     */
    private String name;

    /**
     * 房
     */
    @NotBlank(message = "房不能为空，请检查bedrooms参数", groups = {add.class, edit.class})
    private String bedrooms;

    /**
     * 厅
     */
    @NotBlank(message = "厅不能为空，请检查livingroom参数", groups = {add.class, edit.class})
    private String livingroom;

    /**
     * 卫
     */
    @NotBlank(message = "卫不能为空，请检查bathroom参数", groups = {add.class, edit.class})
    private String bathroom;

    /**
     * 状态（字典 0正常 1停用 2删除）
     */
    private Integer status;

}
